<?php
class dbConnect{
	private $host 	= "localhost";
	private $user 	= "root";
	private $pass 	= "khoulong";
	private $db		= "camlot";
	
	public function __construct(){
		$this->dbconnect();
	}
	
	private function dbconnect() {
		$conn = mysql_connect($this->host, $this->user, $this->pass)
	    or die ("<br/>Could not connect to MySQL server");
		
	    mysql_select_db($this->db,$conn)
	    or die ("<br/>Could not select the indicated database");
	    mysql_query('SET CHARACTER SET utf8');	   
		return $conn;
	}
}
?>